//
//  OADLayoutControlPanel.h
//  OASDK_Works
//
//  Created by ChenJie on 3/15/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIView+OADLayout5.h"

@interface OADLayoutControlPanel : UIView

@property (nonatomic, assign) Direction layoutDirection;
@property (nonatomic, assign) JustifyContent layoutJustifyContent;
@property (nonatomic, assign) AlignItems layoutAlignItems;
@property (nonatomic, copy) void (^layoutDidChange)(Direction direction, JustifyContent justifyContent, AlignItems alignItems);

+ (CGFloat)controlPanelHeight;

+ (instancetype)controlPanelWithDirection:(Direction)direction
                           justifyContent:(JustifyContent)justifyContent
                               alignItems:(AlignItems)alignItems;

- (instancetype)initWithDirection:(Direction)direction
                   justifyContent:(JustifyContent)justifyContent
                       alignItems:(AlignItems)alignItems;

@end
